package com.huawei.crm.service;

import com.github.pagehelper.PageInfo;
import com.huawei.crm.domain.Department;
import com.huawei.crm.query.QueryObject;

import java.util.List;

public interface IDepartmentService {

    void saveOrUpdate(Department d);

    void delete(Long id);

    Department get(Long id);

    List<Department> listAll();

    PageInfo<Department> query(QueryObject qo);
}
